﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.Business" %>
<%@ Import Namespace="Equipment.DataAccess" %>
<%  Html.RenderPartial("~/Views/Shared/Controls/TablePager.ascx")%>
    <table id="historyTable" class="data-table active-history-rows">
        <thead>
            <tr>
                <th width="*">
                    Name
                </th>
                <th width="70px">
                    Action
                </th>
                <th width="150px">
                    Date
                </th>
                <th width="*">
                    User
                </th>
                <th width="120px">
                    Modification Details
                </th>
            </tr>
        </thead>
        <tbody>
            <% For Each item In ViewData("History")%>
            <tr>
                <td>
                    <%: item.Name%>
                </td>
                <td>
                    <%: DirectCast(item.Action, ModificationAction).ToString()%>
                </td>
                <td>
                    <%: TimeZoneManager.ConvertToUserTimeStringFor(item.ActionDate)%>
                </td>
                <td>
                    <%: item.ModifiedByUser.FullName%>
                </td>
                <td>
                    <a href="javascript:detailDialog.show(<%: item.ID%>);">more...</a>
                </td>
            </tr>
            <% Next%>
        </tbody>
    </table>

